<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>products</title>
    <link rel="stylesheet" href="/internship_tp/Application/Home/View/Public/style/style.css">
    <script type="text/javascript" src="/internship_tp/Application/Home/View/Public/js/jquery.min.js"></script>
    <script type="text/javascript" src="/internship_tp/Application/Home/View/Public/js/main.js"></script>
</head>
<body style="background:#F5F5F5;">
<script type="text/javascript" src="/internship_tp/Application/Home/View/Public/js/requ.js"></script>
<div class="header">
    <div class="header-top">
	<ul>
		<?php if($username): ?><a href="<?php echo U('Account/userInfo');?>">
				<li><a href="#">您好&nbsp;&nbsp;<?php echo ($username); ?></a></li>
			</a>
		<?php else: ?>
			<a href="<?php echo U('account/index');?>">
				<li><a href="<?php echo U('Account/index');?>">登录</a></li>
			</a><?php endif; ?>
		<li><a href="<?php echo U('Account/register');?>">注册</a></li>
		<li class="cartnav"><a href="<?php echo U('Product/car');?>"><span></span><div id="carCount">购物车(<?php echo ($carCount); ?>)</div></a></li>
	</ul>
	<?php if($username): ?><!--<div class="cartshow"><p>购物车中还没有商品，赶紧选购吧！</p></div>-->
		<?php else: ?>
			<div class="cartshow"><p>购物车中还没有商品，赶紧选购吧！</p></div><?php endif; ?>
</div>
<div class="nav">
	<a href="<?php echo U('Index/index');?>" class="home"><span></span></a>
	<ul>
		<?php if(is_array($top)): foreach($top as $key=>$tv): ?><li><a href="<?php echo U('Product/index',array('id'=>$tv[id]));?>"><?php echo ($tv["name"]); ?></a></li><?php endforeach; endif; ?>
	</ul>
	<div class="search">
		<input type="text" placeholder="小米">
		<input type="button" value="L">
	</div>
</div>

</div>
<div class="products-container">
    <div class="products-nav">
        <div class="nav-main">
            <span>选购手机·平板</span>
            <a href="javascript:;">小米手机5C</a>
            <a href="javascript:;">小米MIX</a>
            <a href="javascript:;">小米Note2</a>
            <a href="javascript:;">小米5s</a>
            <a href="javascript:;">小米5s Plus</a>
            <a href="javascript:;">小米手机5</a>
            <a href="javascript:;">红米4x</a>
            <a href="javascript:;">红米4</a>
            <a href="javascript:;">红米Note4x</a>
            <a href="javascript:;">红米4A</a>
        </div>
        <a href="javascript:;" class="more">查看全部></a>
        <script type="text/javascript">
            $(function(){
                var more = $('.more');
                var nav_main = $('.products-nav');
                more.click(function(){
                    var he = nav_main.height();
                    if(he==160){
                        nav_main.css('height','80px');
                    }
                    else{
                        nav_main.css('height','160px');
                    }
                });
            });
        </script>
    </div>
    <div class="pro-banner" style="background:url(/internship_tp/Application/Public/Uploads/<?php echo ($model['0']['photourl']); echo ($model['0']['photoname']); ?>);">
        <a href="<?php echo U('Single/index',array('id'=>$model[0][id]));?>"></a>
    </div>
    <div class="products-cart">
        <div class="cart-top">
            <a href="javascript:;">
                <img src="/internship_tp/Application/Public/Uploads/<?php echo ($model['1']['photourl']); echo ($model['1']['photoname']); ?>" alt="" style="width: 606px;height: 360px">
            </a>
        </div>
        <div class="cart-bottom">
            <h2><?php echo ($model['1']['name']); ?></h2>
            <span><?php echo ($model['1']['price']); ?></span>
            <p><?php echo ($model['1']['content1']); ?>/<?php echo ($model['1']['content2']); ?> </p>
            <a href="<?php echo U('Single/index',array('id'=>$model[1][id]));?>">立即购买</a>
        </div>
    </div>
    <div class="products-cart">
        <div class="cart-top">
            <a href="javascript:;">
                <img src="/internship_tp/Application/Public/Uploads/<?php echo ($model['2']['photourl']); echo ($model['2']['photoname']); ?>" alt="" style="width: 606px;height: 360px">
            </a>
        </div>
        <div class="cart-bottom">
            <h2><?php echo ($model['2']['name']); ?></h2>
            <span><?php echo ($model['2']['price']); ?></span>
            <p><?php echo ($model['2']['content1']); ?>/<?php echo ($model['2']['content2']); ?> </p>
            <a href="<?php echo U('Single/index',array('id'=>$model[2][id]));?>">立即购买</a>
        </div>
    </div>
    <div class="products-cart">
        <div class="cart-top">
            <a href="javascript:;">
                <img src="/internship_tp/Application/Public/Uploads/<?php echo ($model['3']['photourl']); echo ($model['3']['photoname']); ?>" alt="" style="width: 606px;height: 360px">
            </a>
        </div>
        <div class="cart-bottom">
            <h2><?php echo ($model['3']['name']); ?></h2>
            <span><?php echo ($model['3']['price']); ?></span>
            <p><?php echo ($model['3']['content1']); ?>/<?php echo ($model['3']['content2']); ?>  </p>
            <a href="<?php echo U('Single/index',array('id'=>$model[3][id]));?>">立即购买</a>
        </div>
    </div>
    <div class="products-cart">
        <div class="cart-top">
            <a href="javascript:;">
                <img src="/internship_tp/Application/Public/Uploads/<?php echo ($model['4']['photourl']); echo ($model['4']['photoname']); ?>" alt="" style="width: 606px;height: 360px">
            </a>
        </div>
        <div class="cart-bottom">
            <h2><?php echo ($model['4']['name']); ?></h2>
            <span><?php echo ($model['4']['price']); ?></span>
            <p><?php echo ($model['4']['content1']); ?>/<?php echo ($model['4']['content2']); ?>  </p>
            <a href="<?php echo U('Single/index',array('id'=>$model[4][id]));?>">立即购买</a>
        </div>
    </div>
    <img src="/internship_tp/Application/Home/View/Public/images/phone-section-04.jpg" alt="">
</div>
<div class="footer">
    <div class="footer-top">
	<ul>
		<li><a href="javascript:;">预约维修服务</a></li>
		<li><a href="javascript:;">7天无理由退货</a></li>
		<li><a href="javascript:;">15天免费换货</a></li>
		<li><a href="javascript:;">满150元包邮</a></li>
		<li><a href="javascript:;">520余家售后网点</a></li>
	</ul>
</div>
<div class="footer-center">
	<div class="footer-left">
		<ul>
			<span>帮助中心</span>
			<li><a href="javascript:;">账户管理</a></li>
			<li><a href="javascript:;">购物指南</a></li>
			<li><a href="javascript:;">订单操作</a></li>
		</ul>
		<ul>
			<span>服务支持</span>
			<li><a href="javascript:;">售后政策</a></li>
			<li><a href="javascript:;">自主服务</a></li>
			<li><a href="javascript:;">相关下载</a></li>
		</ul>
		<ul>
			<span>线下门店</span>
			<li><a href="javascript:;">小米之家</a></li>
			<li><a href="javascript:;">服务网点</a></li>
			<li><a href="javascript:;">零售网点</a></li>
		</ul>
		<ul>
			<span>关于小米</span>
			<li><a href="javascript:;">了解小米</a></li>
			<li><a href="javascript:;">加入小米</a></li>
			<li><a href="javascript:;">联系我们</a></li>
		</ul>
		<ul>
			<span>关注我们</span>
			<li><a href="javascript:;">新浪微博</a></li>
			<li><a href="javascript:;">小米部落</a></li>
			<li><a href="javascript:;">官方微信</a></li>
		</ul>
		<ul>
			<span>特色服务</span>
			<li><a href="javascript:;">F码通道</a></li>
			<li><a href="javascript:;">礼物码</a></li>
			<li><a href="javascript:;">防伪查询</a></li>
		</ul>
	</div>
	<div class="footer-right">
		<span>400-100-5678</span>
		<p>周一至周日8:00-18:00</p>
		<p>(仅收市话费)</p>
		<a href="javascript:;">24小时在线客服</a>
	</div>
</div>
<div class="footer-bottom">
	<span></span>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<p>©mi.com 京ICP证110507号 京ICP备10046444号 京公网安备11010802020134号 京网文[2014]0059-0009号
违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</p>
</div>
</div>
</body>
</html>